from django.apps import AppConfig


class MyAppConfig(AppConfig):
    name = 'my_app'


legal_url = ["https://www.yidaiyilu.gov.cn", "http://www.ebrun.com", "https://www.cndsw.com.cn"]
s = "https://www.yidaiyilu.gov.cn/fdsafdsa".split('/')
a = [i.__eq__(s[0]+"//"+s[2])for i in legal_url].__contains__(True)
print(a,s[0]+"//"+s[2])